package com.homework.ch02.ch021;

public class Test {
    public static void main(String[] args) {
        //写法1
        OuterClass outerClass=new OuterClass();
        OuterClass.InnerClass inner=outerClass.new InnerClass();
        //写法2
        OuterClass.InnerClass inner2=new OuterClass().new InnerClass();
        System.out.println(inner2.a);
        inner2.test();
    }
}
